import Main from "@/views/main"
export default [
  {
    path: '/',
    name: '/',
    component: Main,
    redirect: "/login",
    meta: {
      title: '资产管理'
    },
    children: [
      {
        path: "/login",
        name: "login",
        meta: {
          title: "登录",
        },
        component: () => import('@/views/main/login')
      },
      {
        path: "/myAssets",
        name: "myAssets",
        meta: {
          title: "我的资产",
        },
        component: () => import('@/views/main/myAssets')
      },
      {
        path: "/myMeterials",
        name: "myMeterials",
        meta: {
          title: "我的耗材",
        },
        component: () => import('@/views/main/myMeterials')
      },

      {
        path: "/requireRepairDetail",
        name: "requireRepairDetail",
        meta: {
          title: "报修详情",
        },
        component: () => import('@/views/main/myAssets/requireRepairDetail')
      },
      {
        path: "/deptAssets",
        name: "deptAssets",
        meta: {
          title: "部门资产",
        },
        component: () => import('@/views/main/myAssets/deptAssets')
      },
      {
        path: "/deptMeterials",
        name: "deptMeterials",
        meta: {
          title: "部门耗材",
        },
        component: () => import('@/views/main/myMeterials/deptMeterials')
      },
      {
        path: "/assetsManage",
        name: "assetsManage",
        meta: { title: "资产管理" },
        component: () => import('@/views/main/assetsManage')
      },
      {
        path: "/assetDetail",
        name: "assetDetail",
        meta: { title: "资产管理" },
        component: () => import('@/views/main/assetsManage/assetDetail')
      },
      {
        path: "/editAssets",
        name: "editAssets",
        meta: {
          title: "编辑资产",
        },
        component: () => import('@/views/main/assetsManage/editAssets')
      },
      {
        path: "/assetInventoryDatail",
        name: "assetInventoryDatail",
        meta: {
          title: "盘点任务明细",
        },
        component: () => import('@/views/main/assetsManage/assetInventoryDatail')
      },
      {
        path: "/helpVue",
        name: "helpVue",
        meta: {
          title: "帮助",
        },
        component: () => import('@/views/main/helpVue')
      },
      {
        path: "/privilegeManagement",
        name: "PrivilegeManagement",
        meta: {
          title: "设置"
        },
        component: () => import('@/views/main/PrivilegeManagement')
      },
      /**设置--设置审批流程 */
      {
        path: "/setApprovalProcess",
        name: "setApprovalProcess",
        meta: { title: "如何设置审批流程" },
        component: () => import('@/views/main/PrivilegeManagement/SetApprovalProcess')
      },
      /**领用资产 */
      {
        path: "/assetsReceive",
        name: "assetsReceive",
        meta: { title: "资产领用" },
        component: () => import('@/views/main/AssetsReceive')
      },
      /**耗材领用 */
      {
        path: "/meterialReceive",
        name: "meterialReceive",
        meta: { title: "耗材领用" },
        component: () => import('@/views/main/meterialReceive')
      },
      /*领用资产页面*/
      {
        path: "/collarUse",
        name: "collarUse",
        meta: { title: "提交领用单" },
        component: () => import('@/views/main/AssetsReceive/collarUse')
      },
      /*耗材管理*/
      {
        path: "/meterialManagement",
        name: "meterialManagement",
        meta: {
          title: "耗材管理"
        },
        component: () => import('_m/meterialManagement')
      },
      /*耗材管理--编辑耗材*/
      {
        path: "/editMeterial",
        name: "editMeterial",
        meta: {
          title: "编辑耗材"
        },
        component: () => import('_m/meterialManagement/editMeterial')
      },
      /*耗材管理--耗材详情*/
      {
        path: "/meterialDetail",
        name: "meterialDetail",
        meta: {
          title: "耗材详情"
        },
        component: () => import('_m/meterialManagement/meterialDetail')
      },
      {
        path: "/collarUseOfMeterial",
        name: "collarUseOfMeterial",
        meta: { title: "提交领用单" },
        component: () => import('@/views/main/meterialReceive/collarUseOfMeterial')
      },
      {
        path: "/warehouseReporting",
        name: "warehouseReporting",
        meta: { title: "仓库报表" },
        component: () => import('_m/warehouseReporting')
      },
      {
        path: "/deptReporting",
        name: "deptReporting",
        meta: { title: "公司报表" },
        component: () => import('_m/myReporting')
      },
      {
        path: "/repairTask",
        name: "repairTask",
        meta: { title: "维修管理" },
        component: () => import('@/views/main/repairTask')
      },
    ]
  },
  {
    path: "/overDate",
    name: "overDate",
    meta: { title: "过期页" },
    component: () => import('@/views/main/overDate')
  },
  {
    path: '/error',
    name: 'error',
    meta: {
      hideInMenu: true
    },
    component: () => import('_v/error')
  },
  {
    path: '/printBatchCodeLinkPage',
    name: 'printBatchCodeLinkPage',
    meta: {
      title: '打印'
    },
    component: () => import('@/components/printBatchCode')
  },
  {
    path: '*',
    name: 'all',
    meta: {
      hideInMenu: true
    },
    component: () => import('_v/error')
  }
]